﻿<div class="mtlr15">

    <div class="new-row">
        <div class="text-left">

            <button type="button" class="btn btn-success" ng-click="Dialog_AddSalesArea()">
                <i class="glyphicon glyphicon-plus-sign"></i>
                新建
            </button>
            <button type="button" class="btn btn-success">
                <i class="glyphicon glyphicon-arrow-down"></i>
                导出excel
            </button>
        </div>
        <div style="flex:1"></div>
        <div class="text-right">
            <div class="form-group" style="display:inline-block">
                <input type="text" id="SearchKey" class="form-control" placeholder="请输入名称">
            </div>
            <button type="button" class="btn btn-primary" ng-click="GetSaleAreaList()">
                <i class="glyphicon glyphicon-search"></i>
                查询
            </button>
        </div>
    </div>

    <table class="table table-hover table-bordered" style="text-align: center;">
        <thead>
            <tr>
                <th width="30px"><input class="AllClickCheckbox" type="checkbox"></th>
                <th> 所属机构</th>
                <th>片区名称</th>
                <th>负责人</th>
                <th>联系电话</th>
                <th>备注</th>
                <th>操作时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="item in SalesAreaList.PageData">
                <td width="15"><input class="AllClickChild" type="checkbox"></td>
                <td ng-bind="item.EnterpriseId" > </td>
                <td ng-bind="item.Name"></td>
                <td ng-bind="item.Contacts"></td>
                <td >{{item.ContactTel}}</td>
                <td >{{item.Remark}}</td>
                <td>{{item.ChangeDate | limitTo:10}}</td>
                <td>
                    <a  ng-click="Dialog_EditSalesArea(item)">编辑</a>
                    <a ng-click="DeleteSalesArea(item)">删除</a>
                </td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="8">
                    <lpager pagedata="SalesAreaList" link="GetSaleAreaList"></lpager>
                </td>
            </tr>
        </tfoot>
    </table>
    
    <div style="float:left">
        <button type="button" class="btn btn-success">
            <i class=""></i>
            全选
        </button>
        <button type="button" class="btn btn-success">
            <i class="glyphicon glyphicon-ok"></i>
            启动
        </button>
        <button type="button" class="btn btn-danger">
            <i class="glyphicon glyphicon-remove"></i>
            禁用
        </button>
    </div>
</div>